home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer CD Series 1998 June: Reference Library
/
Dev.CD Jun 98 RL2.toast
/
Technical Documentation
/
Technical Publications
/
mac
/
AppleScriptLang
/
runsed
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1998-04-07
|
372 b
|
20 lines
|
[
TEXT/R*ch
]
for x
do
echo "editing $x: \c"
if test "$x" = sedscr; then
echo "not editing sedscript!"
elif test -s $x; then
sed -f sedscr $x > /tmp/$x
if test -s /tmp/$x
then
cmp -s $x /tmp/$x && echo "file not changed: \c";\
cp /tmp/$x $x;echo "done"
else
echo "Sed produced an empty file - check sed script."
fi
else
echo "original file is empty."
fi
done
echo "all done"